package com.android.zweibo.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;


public class JavaScriptInterface {
	
	public static String PIN;
	
	public void getPin(String html) {
		System.out.println("html----" + html);
		String pin = null;
		Pattern pattern = Pattern.compile("[0-9]{6}");
		Matcher matcher = pattern.matcher(html);
		
		if(matcher.find()) {
			pin = matcher.group(0);
		}
		System.out.println("pin-----" + pin);
		PIN = pin;
	}
}
